package com.sczmgk.hotline.db.impl;

import android.content.Context;

import com.sczmgk.hotline.db.IndicatorTitleDao;
import com.sczmgk.hotline.db.base.DAOSupport;
import com.sczmgk.hotline.entity.IndicatorHomeInfo;


/**
 * Created by chenb on 2016/12/6.
 */

public class IndicatorTitleDaoImpl extends DAOSupport<IndicatorHomeInfo> implements IndicatorTitleDao {

    private IndicatorTitleDaoImpl(Context context) {
        super(context);
    }
    private static IndicatorTitleDaoImpl intance;
    public static IndicatorTitleDaoImpl getIntance(Context context){
        if(intance == null){
            intance = new IndicatorTitleDaoImpl(context);
        }
        return intance;
    }

    public static boolean isExists(Context context, int id) {
        return intance.isExists(id);
    }
}
